
from rest_framework.routers import DefaultRouter
from django.conf.urls import url, include

from .wechat_views import WechatAuthViewSet
from .qq_views import QQAuthViewSet
from .views import PhoneAuthViewSet, CheckAuthViewSet, CaptchaViewSet


router = DefaultRouter()
router.register(r'wechat', WechatAuthViewSet)
router.register(r'qq', QQAuthViewSet)
router.register(r'phone', PhoneAuthViewSet)
router.register(r'token', CheckAuthViewSet)
router.register(r'captcha', CaptchaViewSet)

urlpatterns = [
    url(r'^', include(router.urls)),
]
